import request from './request'

export const register = (data) =>{
  return request({
    method: 'post',
    url: 'mall/users/regMember',
    data,
    dataType: "json"
  })
}

export const merchant = (data) =>{
  return request({
    method: 'post',
    url: 'mall/users/regBusiness',
    data,
    dataType: "json"
  })
}

export const auth = (data) =>{
  return request({
    method: 'post',
    url: 'mall/companyauth/auth',
    data,
    headers:{
      token:`${localStorage.getItem('token')}`
    },
    dataType: "json"
  })
}